<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusAssessmentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_assessment', function (Blueprint $table) {
            $table->id();
            $table->date('month')->nullable()->comment('年月');
            $table->string('department')->nullable()->comment('部门');
            $table->integer('good')->default(0)->comment('优秀');
            $table->integer('competent')->default(0)->comment('称职');
            $table->integer('un_competent')->default(0)->comment('不称职');
            $table->integer('other')->default(0)->comment('其余');
            $table->string('note')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_assessment');
    }
}
